FROM talkincode/pypy
MAINTAINER jamiesun <jamiesun.net@gmail.com>


RUN add-apt-repository -y ppa:nginx/stable && \
    apt-get update -y && \
    apt-get install -y  mysql-client libmysqlclient-dev beanstalkd memcached nginx && \
    rm -rf /var/lib/apt/lists/*


RUN pypy -m pip install Mako
RUN pypy -m pip install Beaker
RUN pypy -m pip install MarkupSafe
RUN pypy -m pip install PyYAML
RUN pypy -m pip install Twisted
RUN pypy -m pip install treq
RUN pypy -m pip install tablib
RUN pypy -m pip install cyclone
RUN pypy -m pip install six
RUN pypy -m pip install autobahn
RUN pypy -m pip install pycrypto
RUN pypy -m pip install pyOpenSSL>=0.14
RUN pypy -m pip install service_identity
RUN pypy -m pip install MySQL-python
RUN pypy -m pip install SQLAlchemy
RUN pypy -m pip install pybeanstalk
RUN pypy -m pip install txyam


RUN echo "set nocompatible" >> /root/.vimrc && echo "set backspace=2" >> /root/.vimrc
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime


